﻿using System;

namespace Acl.Modular
{
    /// <summary>
    ///
    /// </summary>
    public class ModuleException : Exception
    {
        /// <summary>
        ///  获取Bundle的异常类型
        /// </summary>
        public IModule Module { get; private set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="module">mok</param>
        /// <param name="message">消息</param>
        /// <param name="innerException">异常对象</param>
        public ModuleException(IModule module, string message = null, Exception innerException = null)
            : base(message, innerException)
        {
            Module = module;
        }
    }
}